//----------------------------------Include------------------------------------
#include "EPD_1in02d.h"
#include "GUI_Paint.h"
//-----------------------------------------------------------------------------

//1.02"
//80x128 Pixels

//-----------------------------------Macro-------------------------------------
#define  IMG_SIZE   ( ((EPD_1IN02_WIDTH % 8 == 0)? (EPD_1IN02_WIDTH / 8 ): (EPD_1IN02_WIDTH / 8 + 1)) * EPD_1IN02_HEIGHT )
//-----------------------------------------------------------------------------

//---------------------------------Static Var----------------------------------
static uint8_t  BlackImage[IMG_SIZE];
//-----------------------------------------------------------------------------

//--------------------------------Static Func----------------------------------
//-----------------------------------------------------------------------------

//--------------------------------Public Func----------------------------------
void MyBrd_Init_ePaper(void)
{
  DEV_Module_Init();

  EPD_1IN02_Init();
  EPD_1IN02_Clear();
  DEV_Delay_ms(100);
  
  Paint_NewImage(BlackImage, EPD_1IN02_WIDTH, EPD_1IN02_HEIGHT, 90, BLACK);
  Paint_Clear(BLACK);
  Paint_SelectImage(BlackImage);
}

void MyBrd_ePaper_Display(void)
{
  EPD_1IN02_Display(BlackImage);
}
//------------------------------------EOF--------------------------------------



